
<form class="form-horizontal" role="form">
 <div class="col-md-12">
 <div class="panel panel-default">
 <div class="panel-body">
 <div class="form-group">


 <div class="form-group">
  <label for="inputDate" class="col-sm-2 control-label">景点名称</label>
  <div class="col-md-9">
  <input type="text" class="form-control" id="inputspotname" placeholder=""
      ng-model="info.scenicspot_name">
  </div>    
 </div>

 <div class="form-group" >
    <label class="col-sm-2 col-xs-12 control-label">简介</label>
    <div class="col-sm-9">
      <!-- <div text-angular ng-model="placeobj.content"></div> -->
      <div class="ueditor" ng-model="info.scenicspot_intro"></div>
    </div>
  </div>

 <div class="form-group">
  <label for="inputDate" class="col-sm-2 control-label">经度</label>
  <div class="col-md-3">
      <input type="text" class="form-control" id="inputlong" placeholder=""
      ng-model="info.longitude">
    </div>
 </div>
 <div class="form-group">
    <label for="inputDate" class="col-sm-2 control-label">纬度</label>
    <div class="col-md-3">
        <input type="text" class="form-control" id="latitude" placeholder=""
        ng-model="info.latitude">
      </div>
   </div>

 <div class="form-group">
  <label for="inputDate" class="col-sm-2 control-label">围栏方式</label>
  <div class="col-md-9">
    <div class="col-md-7">
      <div class="col-md-2">
        <label class="radio">
          <input type="radio" name="optionsRadios" ng-model="info.rail_type" id="optionsRadios1" value="1" checked>
          圆
        </label>
      </div>
      <div class="col-md-2">
        <label class="radio">
          <input type="radio" name="optionsRadios" ng-model="info.rail_type" id="optionsRadios2" value="2">
          矩形
        </label>
      </div>
    </div>
  </div>
 </div>



  <div class="form-group" ng-show="info.rail_type==1">
  <label for="inputDate" class="col-sm-2 control-label">圆坐标</label>
  <div class="col-md-9">
    <div class="col-md-9" style="padding:0;">
        <div class="col-md-4" style="padding:0;">
            <div class="col-md-4 control-label">圆心经度</div>
            <div class="col-md-8" style="padding:0;">
              <input type="text" class="form-control" id="inputlong" placeholder=""
              ng-model="info.railcenterlong">
            </div>
          </div>
          <div class="col-md-4" style="padding:0;">
            <div class="col-md-4 control-label">圆心纬度</div>
            <div class="col-md-8" style="padding:0;">
              <input type="text" class="form-control" id="inputlat" placeholder=""
              ng-model="info.railcenterlat">
            </div>
          </div>
          <div class="col-md-4" style="padding:0;">
            <div class="col-md-3 control-label">半径</div>
            <div class="col-md-9" style="padding:0;">
              <input type="text" class="form-control" id="inputlat" placeholder=""
              ng-model="info.center_radius">
            </div>
          </div>
    </div>
    <div class="col-md-3"></div>
  </div>    
  </div>

  <div class="form-group" ng-show="info.rail_type==2">
      <label for="inputDate" class="col-sm-2 control-label">矩形坐标</label>
      <div class="col-md-9">
        <div class="col-md-9" style="padding:0;">
            <div class="col-md-4" style="padding:0;">
                <div class="col-md-2 control-label" style="padding-left:0;text-align:left;">经度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlong" placeholder=""
                  ng-model="info.rectanglelong1">
                </div>
              </div>
              <div class="col-md-4" style="padding:0;">
                <div class="col-md-3 control-label" style="text-align:right;">纬度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlat" placeholder=""
                  ng-model="info.rectanglelat1">
                </div>
              </div>
        </div>
        <div class="col-md-3"></div>
        <div class="col-md-9 mt10" style="padding:0;">
            <div class="col-md-4" style="padding:0;">
                <div class="col-md-2 control-label" style="padding-left:0;text-align:left;">经度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlong" placeholder=""
                  ng-model="info.rectanglelong2">
                </div>
              </div>
              <div class="col-md-4" style="padding:0;">
                <div class="col-md-3 control-label" style="text-align:right;">纬度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlat" placeholder=""
                  ng-model="info.rectanglelat2">
                </div>
              </div>
        </div>
        <div class="col-md-3"></div>
        <div class="col-md-9 mt10" style="padding:0;">
            <div class="col-md-4" style="padding:0;">
                <div class="col-md-2 control-label" style="padding-left:0;text-align:left;">经度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlong" placeholder=""
                  ng-model="info.rectanglelong3">
                </div>
              </div>
              <div class="col-md-4" style="padding:0;">
                <div class="col-md-3 control-label" style="text-align:right;">纬度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlat" placeholder=""
                  ng-model="info.rectanglelat3">
                </div>
              </div>
        </div>
        <div class="col-md-3"></div>
        <div class="col-md-9 mt10" style="padding:0;">
            <div class="col-md-4" style="padding:0;">
                <div class="col-md-2 control-label" style="padding-left:0;text-align:left;">经度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlong" placeholder=""
                  ng-model="info.rectanglelong4">
                </div>
              </div>
              <div class="col-md-4" style="padding:0;">
                <div class="col-md-3 control-label" style="text-align:right;">纬度</div>
                <div class="col-md-9" style="padding:0;">
                  <input type="text" class="form-control" id="inputlat" placeholder=""
                  ng-model="info.rectanglelat4">
                </div>
              </div>
        </div><br>
        <div class="col-md-9" style="line-height:50px;color:red;padding-left:0;">*请务必按照顺时针或逆时针填写</div>
      </div>    
      </div>


 <div class="form-group">
 <label for="inputDate" class="col-sm-2 control-label">图片</label>
 <div class="col-md-6">
      <img ng-src="{{info.img}}" width="100%" height="200" ng-model="info.img">
      <div ng-show="info.showflg">原图片地址：{{info.img}}</div>
        <input type="file" nv-file-select uploader="uploader1" / ng-hide="hide===true" ><br/>
        <ul class="list-group">
          <li class="list-group-item" ng-repeat="item in uploader1.queue">
            文件名: <span ng-bind="item.file.name"></span>
            <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
            <div class="progress mt10">
              <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader1.progress + '%' }"></div>
            </div>
          </li>
   	      <font face="Courier" class="text-danger">注:上传图片尺寸为750 * 1334</font>         
        </ul>
 </div>
 </div>

 <div class="form-group">
    <label for="inputDate" class="col-sm-2 control-label">上传音频</label>
    <div class="col-md-6">
         <!-- <audio ng-src="{{info.voice}}" width="100%" height="200" ng-model="info.voice"></audio> -->
           <input type="file" nv-file-select uploader="uploader2" / ng-hide="hide===true" ><br/>
           <div ng-show="info.showflg">音频文件url：{{info.voice}}</div>
           <ul class="list-group">
             <li class="list-group-item" ng-repeat="item in uploader2.queue">
               文件名: <span ng-bind="item.file.name"></span><br><span ng-show="info.voice" ng-model="info.voice"></span>
               <button type="button" class="btn btn-default btn-xs"  ng-click="item.upload()"><span class="glyphicon glyphicon-upload"></span> 上传</button>
               <div class="progress mt10">
                 <div class="progress-bar" role="progressbar" ng-style="{ 'width': uploader2.progress + '%' }"></div>
               </div>
             </li>
              <font face="Courier" class="text-danger">注:上传音乐格式为.mp3,大小不要超过3M</font>   <br>      
              <font face="Courier" class="text-danger">※请等待MP3上传完成出现弹窗再点击保存！</font>
           </ul>
           <!-- <input type="file" id="file">
           <input type="button" ng-click="uploadMp3()" value="上传"> -->
    </div>
    </div>



 <div>
   
  <button type="button" class="col-md-1 col-md-offset-6 btn btn-primary" ng-click="save()" ng-if="info.nameid=='1'">保存</button>
  <button type="button" class="col-md-1 col-md-offset-6 btn btn-primary" ng-click="update(info.scenicspot_id)" ng-if="info.nameid==2">确认修改</button>
 </div>

</div>
</div>

</div>
 


</form>